/*
 * @Author: your name
 * @Date: 2021-07-23 21:26:36
 * @LastEditTime: 2021-07-23 21:36:22
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \Self\hm-news-86\src\utils\storage.js
 */
// 在这里封装本地存储
export function setStorageToken(payload) {
  localStorage.setItem('hm-news-token', JSON.stringify(payload))
}
export function getStorageToken() {
  // 获取token的结果,还需要将其返回出去
  return JSON.parse(localStorage.getItem('hm-news-token')) || {}
}
export function removeStorageToken() {
  localStorage.removeItem('he-news-token')
}
